package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 预计销售订单费用表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "advance_sale_order_cost")
public class AdvanceSaleOrderCost implements Serializable {
    /**
     * 预计销售订单费用id
     */
    @TableId(value = "advance_sale_order_cost_no", type = IdType.INPUT)
    private Integer advanceSaleOrderCostNo;

    /**
     * 预付款id
     */
    @TableField(value = "advance_payment_id")
    private Integer advancePaymentId;

    /**
     * 销售订单id
     */
    @TableField(value = "sale_order_id")
    private Integer saleOrderId;

    /**
     * 累计定金
     */
    @TableField(value = "deposit")
    private BigDecimal deposit;

    /**
     * 预付定金比率
     */
    @TableField(value = "predeposit_ratio")
    private BigDecimal predepositRatio;

    /**
     * 预付金额
     */
    @TableField(value = "preamount")
    private BigDecimal preamount;

    private static final long serialVersionUID = 1L;
}